package com.xzp.blog.entity.vo;

import com.xzp.blog.entity.About;
import org.hibernate.validator.constraints.NotEmpty;


public class AboutModifyView {
    @NotEmpty
    private Integer id;

    @NotEmpty
    private String title;

    private String mdMaterial;

    private String description;

    public AboutModifyView(About article) {
        this.id = article.getId();
        this.title = article.getTitle();
        this.mdMaterial = article.getMdMaterial();
        this.description = article.getIntroduction();
    }

    public AboutModifyView() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMdMaterial() {
        return mdMaterial;
    }

    public void setMdMaterial(String mdMaterial) {
        this.mdMaterial = mdMaterial;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
